package com.cqie.hospitalescort.service;

import com.cqie.hospitalescort.VO.AssessInfoVO;
import com.cqie.hospitalescort.entity.AssessInfo;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

/**
 * <p>
 * 评价信息 服务类
 * </p>
 *
 * @author gdy
 * @since 2025-02-18
 */
public interface AssessInfoService extends IService<AssessInfo> {

    List<AssessInfoVO> getAssessInfo(Long escortId);

//    @PreAuthorize(value = "hasAnyRole('USER','ESCORT')")
    void saveAssessInfo(AssessInfo assessInfo);

    @PreAuthorize(value = "hasAnyRole('ROLE_ADMIN','ROLE_USER')")
    void deleteAssessInfo(Long id);

}
